// Reducer 数据处理
import {type} from '../action'
const initialState = {
    menuName: '首页'
};
export default (state=initialState,action) => {
    if(action.type = type){
        return {
            ...state,
            menuName:action.defaultValue===undefined ? initialState.menuName :  action.menuName
        };
    }
}